# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-python-registry
_pkgname=python-registry
pkgver=1.3.1
pkgrel=9
pkgdesc='Read access to Windows Registry files.'
arch=('any')
url='https://pypi.org/project/python-registry/#files'
license=('Apache')
depends=('python' 'python-unicodecsv' 'python-enum-compat')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('286e7ae5ccb3daa7427c7dc6400ae825dcbc33102030c8e2d38f110c63f9968951c7f67dbf09f35d2d69d2ab4ac5e4de265bde22fbdf3097dc1f0eea5307de1c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

